<?php

namespace JsonLowCode\Form\Traits;

trait HasPrefix
{
    /**
     * @param mixed $prefix
     * @param array $params
     * @return $this
     */
    public function prefix(mixed $prefix, array $params = []): static
    {
        $this->element->slotPrefix($prefix, $params);
        return $this;
    }
}
